package cn.stu.projectsummit.likes.mapper;

import cn.stu.projectsummit.likes.pojo.dto.SaveLikesParam;
import cn.stu.projectsummit.likes.pojo.entity.Likes;
import org.apache.ibatis.annotations.Param;
import cn.stu.projectsummit.likes.pojo.vo.LikeVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LikesMapper {
    void save(SaveLikesParam saveLikesParam);

    void delete(@Param("blogId") Long blogId, @Param("userId") Long userId);

    List<Likes> selectByUserId(Long userId);
    Integer selectByBlogId(Long blogId);

    List<Likes> selectByBlogIdList(List<Long> likeCountBlogIdList);
    List<LikeVO> select();


    void deleteLikes(Long likeId);
}
